﻿using System;

namespace BwanaBank.BankOnline.WinUI.Window.Admin
{
    public partial class Operations : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Cookies["admin"] == null && Session["admin"] == null)
            {
                Response.Redirect("~/");
            }
        }
        protected void Random_Numbers(object sender, EventArgs e)
        {
            num.Text = RandomNumber(11111111, 44444444).ToString();
            code.Text = RandomNumber(55555555, 99999999).ToString();
        }
        private int RandomNumber(int min, int max)
        {
            var random = new Random();
            return random.Next(min, max);
        }
    }
}
